SequencingNodeReader.RollupRules Property

Returns the ReadOnlyCollection<SequencingRollupRuleNodeReader> containing the <imsss:rollupRules>/<imsss:rollupRule> nodes, of type SequencingRollupRuleNodeReader.

Parent Type: SequencingNodeReader

Namespace: Microsoft.LearningComponents.Manifest

Assembly: Microsoft.LearningComponents.dll

Syntax
C#

public ReadOnlyCollection<SequencingRollupRuleNodeReader> RollupRules

{ get; }
Exceptions
Exception type Condition
InvalidPackageException

In ManifestReaderSettings.FixScormRequirementViolations=false if there is an invalid node, or if there are multiple <imsss:rollupRules> nodes.

Remarks

The ReadOnlyCollection returned from this method is not populated until properties or methods on it are accessed. This means that in ManifestReaderSettings.FixScormRequirementViolations=false, InvalidPackageException may be thrown if there are invalid nodes in the list (e.g. nodes containing illegal attribute values.)

In ManifestReaderSettings.FixScormRequirementViolations=true, warnings are added to the log and invalid nodes are ignored.

If there are no nodes of the specified type, an empty ReadOnlyCollection is returned.

Note that if this sequencing node has a valid IDRef attribute, if there is no <imsss:rollupRules> node in this sequencing node, the values inside the <imsss:rollupRules> node in the sequencing node referenced by IDRef is returned.

Example

Loop through all rollup rules in the sequencingCollection.

C#
    foreach(SequencingNodeReader sequencing in manifest.SequencingCollection.Values)
    {
        foreach (SequencingRollupRuleNodeReader rollupRule in sequencing.RollupRules)
        {
            // Use the SequencingRollupRuleNodeReader
        }
    }